#pragma once
#include <map>
#include <string>
class StatisticsHandler
{
private:
	double _cacheHits;
	double _flashCacheHits;
	double _totalIOs;
	std::map<std::string,int>* _extents;
public:
	StatisticsHandler(void);
	~StatisticsHandler(void);
	void reset(double time);
	
	void cacheHit();
	void flashCacheHit();
	void miss();

	std::map<std::string,int>* getExtentsHistogram();
	void extentFetch(std::string extentID);
	void clearExtentsHistogram();

};

